﻿#define USEMINE
using System;
using System.Diagnostics;
#if USEMINE
using System.IO;
using System.IO.Ports;
using System.Threading;
using GeckoLib;

#else
using System;
using FTDIUSBGecko;
#endif
namespace TestBed {
    class Program {
        static void Main(string[] arguments) {
            Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
            try {
                using (var serialPort = new SerialPort("COM3")) {
                    serialPort.Open();
                    var gecko = new Gecko(serialPort.BaseStream);
                    gecko.Pause();
                    Console.WriteLine(gecko.Version);
                    gecko.Resume();
                }
            } catch (Exception exception) {
                Debug.WriteLine(exception);
            }
        }
    }
}
